import { useNavigate } from "react-router-dom"
import Comp1 from "@/components/Comp1"
import Comp2 from "@/components/Comp2"

function Page1() {
  const navigate = useNavigate()
  return (
    <div>
      this is page1
      <Comp1></Comp1>
      <Comp2></Comp2>
      <button onClick={() => navigate('/page2')}>去page2</button>
      
    </div>
  )
}

export default Page1